<?php

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

use yii\helpers\Html;

?>

<style>
   .page-none-alert{margin: 100px 0 !important;
    text-align: center !important;
    font-size: 30px !important;}
    .page-none-alert p{font-size: 20px !important;color: #FFFFFF;}
    .alert-danger {
        color: #a94442;
        background-color: #a664a6;
        border-color: #a664a6;
    }
    .alert {
        padding: 15px;
        margin-bottom: 20px;
        border: 1px solid transparent;
        border-radius: 4px;
    }
    .site-error{padding: 30px;}
    .col_1{ color: #FFFFFF; }
</style> 

<div class="site-error">

    <div class="alert alert-danger page-none-alert">
        <p>
        <?php if(isset($errorMessage)):?>
            <i class="iconfont">&#xe697;</i>
            <span class="btn-lg text-danger"><?php echo '操作出错啦！' ?></span>
            <?php echo '<p>'.$errorMessage.'</p>';?>
        <?php else:?>
            <i class="iconfont col_1">&#xe697;</i>
            <span class="col_1">占位成功！</span>
        <?php endif;?>
    </p>
        
    <p class="text-muted col_1">该页将在3秒后自动跳转!</p>
    <p>
        <?php if(isset($gotoUrl)):?>
            <a class="mui-btn" href="<?php echo $gotoUrl?>">立即跳转</a>
        <?php else:?>
            <a href="javascript:void(0)" onclick="history.go(-1)">返回上一页</a>
        <?php endif;?>
    </p>
    
    </div>
   

</div>

<?php app\components\JsBlock::begin() ?>

<script type="text/javascript">

<?php if(!isset($gotoUrl)):?> 
   setInterval("history.go(-1);",<?php echo $sec;?>000); 
<?php else:?>
   setInterval("window.location.href='<?php echo  $gotoUrl;?>'",<?php echo $sec;?>000);
<?php endif;?>

</script>
<?php app\components\JsBlock::end() ?>
